/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Reeks5.VanRansbeeck.Kevin.View;

import Reeks5.VanRansbeeck.Kevin.Model.HogerLagerModel;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;

/**
 *
 * @author sonicah
 */
public class HogerLagerGUI extends JFrame {
    private     HogerLagerMenuPaneel    menuPaneel;
    protected   HogerLagerModel         model;

    public HogerLagerGUI(HogerLagerModel model, String titel) {
        super(titel);
        this.model = model;
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);

        this.menuPaneel = new HogerLagerMenuPaneel(model);

        this.model.addObserver(this.menuPaneel);

        Container cont = this.getContentPane();

        cont.add(this.menuPaneel, BorderLayout.PAGE_START);

        this.pack();
        this.setVisible(true);
    }

}
